/*
 * Customer.java
 *
 * Created on February 13, 2007, 1:01 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package Data;
import java.util.*;
/**
 *
 * @author Danny Beutler
 */
public class CustomerBO {
    private String id;
    private String firstName;
    private String lastName;
    private String phone;
    private String email;
    private String address;
    private String city;
    private String state;
    private String zip;
    private MemberBO member;
    private boolean alreadyInDB=false;
    private boolean dirty =true;
    
    /** Creates a new instance of Customer */
    public CustomerBO(String GUID) {
        this.id=GUID;
    }
    
   public String toString(){
       String returnCustomerString = null;
       returnCustomerString=this.getLastName();
       returnCustomerString+=", ";
       returnCustomerString+=this.getFirstName();
       returnCustomerString+=", ";
       returnCustomerString+=this.getPhone();
       
       
       return returnCustomerString;
   }
    
    /** Gets the customer GUID */
    public String getId() {
        return id;
    }
    
    /** Gets the customer firstName */
    public String getFirstName() {
        return firstName;
    }
    
    /** Set the customer firstName */
    public void setFirstName(String firstName) {
        dirty=true;
        this.firstName = firstName;
    }
    
        /** Gets the customer lastName */
    public String getLastName() {
        return lastName;
    }
    
    /** Set the customer lastName */
    public void setLastName(String lastName) {
        dirty=true;
        this.lastName = lastName;
    }
    
    /** Gets the customer phone number */
    public String getPhone() {
        return phone;
    }
    
    /** Set the customer phone number */
    public void setPhone(String phone) {
        dirty=true;
        this.phone = phone;
    }
    
    /** Gets the customer email */
    public String getEmail() {
        return email;
    }
    
    /** Set the customer email */
    public void setEmail(String email) {
        dirty=true;
        this.email = email;
    }
    
    /** Gets the customer street */
    public String getAddress() {
        return address;
    }
    
    /** Set the customer street */
    public void setAddress(String address) {
        dirty=true;
        this.address = address;
    }
    
    /** Gets the customer city */
    public String getCity() {
        return city;
    }
    
    /** Creates a new instance of Customer */
    public void setCity(String city) {
        dirty=true;
        this.city = city;
    }
    
    /** Gets the customer State */
    public String getState() {
        return state;
    }
    
    /** Set the customer state */
    public void setState(String state) {
        dirty=true;
        this.state = state;
    }
    
    /** Gets the customer Zip */
    public String getZip() {
        return zip;
    }
    
    /** Set the customer zip */
    public void setZip(String zip) {
        dirty=true;
        this.zip = zip;
    }
    
    /** Gets the customer member id */
    public MemberBO getMember() {
        return member;
    }
    
    /** Set the customer's member id */
    public void setMember(MemberBO member) {
        dirty=true;
        this.member = member;
    }
    
    /** Get the customer's already in database boolean */
    public boolean isAlreadyInDB() {
        return alreadyInDB;
    }
    
    /** Set the customer's already in database boolean */
    public void setAlreadyInDB(boolean alreadyInDB) {
        this.alreadyInDB = alreadyInDB;
    }
    
    /** Get the customer's dirty boolean */
    public boolean isDirty() {
        return dirty;
    }
    
    /** Set the customer's Dirty boolean */
    public void setDirty(boolean dirty) {
        this.dirty = dirty;
    }
    
}
